import { Swiper, SwiperSlide } from "vue-awesome-swiper";

export default {
  name: "common-swiper",
  components: {
    Swiper,
    SwiperSlide,
  },
  data: () => {
    return {
      swiperOption: {
        //显示分页
        pagination: {
          el: ".swiper-pagination",
        },
        //自动轮播
        autoplay: {
          delay: 2000,
          //当用户滑动图片后继续自动轮播
          disableOnInteraction: false,
        },
        //开启循环模式
        loop: true,
      },
      imgData: [
        {
          imgUrl:
            "https://haitao.nos.netease.com/432688c0-d4fc-436f-bb3e-f8452e29db2bT1912311645_1920_400.jpg?imageView&thumbnail=3840x0&quality=95",
        },
        {
          imgUrl:
            "https://haitao.nos.netease.com/cd171bbe-1828-4ff0-90a8-9bc45b9908b9T19010292039_1920_400.jpg?imageView&thumbnail=3840x0&quality=95",
        },
        {
          imgUrl:
            "https://haitao.nos.netease.com/b5ab8054-fd6c-437b-a646-0b7e193e4a71T19010292052_1920_400.jpg?imageView&thumbnail=3840x0&quality=95",
        },
      ],
    };
  },
  computed: {},
};
